package 反射;

public class 类 {
    private String name;

    public 类(String name) {
        this.name = name;
    }

    public 类() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "类{" +
                "name='" + name + '\'' +
                '}';
    }

    public void f(){
        System.out.println("类方法");
    }
}
